cmake_minimum_required(VERSION 2.8)

PROJECT (c4)

find_package(OpenCV  REQUIRED)


file(GLOB TestC4Detector_SRCS
    "*.h"
    "*.cpp")
ADD_EXECUTABLE (c4 ${TestC4Detector_SRCS})



if (OpenCV_FOUND)
	include_directories( ${OpenCV_INCLUDE_DIRS} )
#	include_directories("${OPENCV_CONFIG_PATH}/include")
	target_link_libraries( c4 ${OpenCV_LIBS} )
else (OpenCV_FOUND)
message("PB->OPENCV = ${OpenCV_INCLUDE_DIRS}")
endif (OpenCV_FOUND)
